package com.chenfan.finance.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chenfan.finance.model.CfRefundorderHeader;
import com.chenfan.finance.model.TocTradeRefundOrderHeader;
import com.chenfan.finance.model.vo.TimeRange;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.time.LocalDateTime;
import java.util.List;

public interface TocTradeRefundOrderHeaderMapper  extends BaseMapper<TocTradeRefundOrderHeader> {
    int insertList(@Param("list") List<TocTradeRefundOrderHeader> list,@Param("taskYearMonth") LocalDateTime taskYearMonth);
    int insertListSimplify(@Param("list") List<TocTradeRefundOrderHeader> list,@Param("taskYearMonth") LocalDateTime taskYearMonth);
    int copyDataToSimplify(@Param("taskYearMonth") LocalDateTime taskYearMonth);
    int insertList(@Param("list") List<TocTradeRefundOrderHeader> list, @Param("taskYearMonth") String taskYearMonth);

    List<TocTradeRefundOrderHeader> getListByRefundCode(@Param("refundNo") String refundNo, @Param("timeRange")TimeRange timeRange);

    List<TocTradeRefundOrderHeader> getListByTid(@Param("tid") String tid, @Param("timeRange") TimeRange timeRange);
}